#include "GameObject.h"

GameObject::GameObject(int x, int y, string fileName)
{
	this->x = x;
	this->y = y;
    for(int i = 0; i < 4; i++)
    {
        //tratar arquivo diferentes
        animation[i] = new Animation(fileName, x, y, 1, 1);
    }

}

int GameObject::Update(int dt)
{
    return 0;
}

void GameObject::Render(SDL_Surface *screen)
{
    animation[direction]->x = x;
    animation[direction]->y = y;

    animation[direction]->Render(screen);
}

bool GameObject::boxCollidesWith(GameObject *gameObject)
{
    return animation[direction]->boxCollidesWith(gameObject->animation[direction]);
}
